<div id="body">
<?= $error; ?>
	<?php if($admin) { ?>
		<div id="add_event" style="float:right;">
		<?php echo anchor('user_control/add_event', 'Add News/Event', array('style'=>'text-decoration:none;color:#FFEA00;font-size:12px;')); ?>
		</div>
	<?php } ?>
	  <div id="events_list">
		<?php
			foreach($events->result() as $row) {
				echo '<p>';
				
				echo '<p style="color:#FFEA00;">'.$row->EDate;
				if($admin) {
					//echo '  -  '.anchor('user_control/delete_event/'.$row->EventID, 'Delete Event');
					echo '&nbsp&nbsp&nbsp&nbsp'.anchor('user_control/delete_event/'.$row->EventID, img('images/delete_event.gif'), array('title'=>'Delete Event'));
				} echo '<p>';
				echo $row->EventDescription;
				echo '</p>';
			}
		?>
	  </div>
<div class="clear"> </div>
